#include<stdio.h>
int main()
{
	int a,b,c,d;
	scanf("%d %d %d %d",&a,&b,&c,&d);
	float aver = (a+b+c+d)/4.0;
	printf("Sum = %d; Average = %.1f",(a+b+c+d),aver);
	return 0;
}
